package com.chb.controller;

import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author CHB
 * @createTime 2022-6-21 9:40
 */
@RestControllerAdvice
public class AdviceController {

    // @ExceptionHandler(Exception.class)
    public String exceptionHandle(Exception ex){
        System.out.println("---------------exceptionHandle-----------------");
        return ex.getMessage();
    }
}
